<div ng-controller="LoginController"  class="login container">
    <div class="card">
        <h1>登录</h1>
        <form name="login_form" ng-submit="User.login()">
            <div class="input-group">
                <label>用户名</label>
                <input type="text" autocomplete="off" name="username" required ng-model="User.login_data.username">
            </div>
            <div class="input-group">
                <label>密码</label>
                <input type="password" name="password" required ng-model="User.login_data.password">
            </div>
            <div ng-if="User.login_err" class="input-err-set">
                用户名或者密码错误
            </div>
            <button type="reset" class="reset_but" ng-click="User.login_reset()">重置</button>
            <button type="submit" class="primary" ng-disabled="login_form.$invalid">登录</button>
        </form>
    </div>
</div>